package com.test

import com.git.JGitPack
import java.io.File
import kotlin.test.Test

class JGitTest {
    @Test
    @Throws(Exception::class)
    fun test() {
        val repoGitDir = File("/Users/boge/Project/Game/Static2-Project/.git")

        val gitPack = JGitPack()

        val result = gitPack.gitPull(repoGitDir)
        gitPack.gitLog(repoGitDir)
        if (result) {
            println("pull 成功")
            gitPack.gitLog(repoGitDir)
        } else {
            System.err.println("pull 失败")
        }
    }

    private fun showLine(str: String) {
        println("  ******************** $str ********************")
    }
}
